/**
 * Created by gongxun on 17/1/9.
 */

var HallUserOnLineResponse = function(){
    var that = new GameResponseBase();

    that.handle = function (binary, msgid) {
        that.loadMessage(binary, msgid);

        var info = {};
        for(var i = 0; i < that.msg.Uid.length; i++){
            var uid = that.msg.Uid[i];
            var flag = that.msg.Flag[i];
            info[uid.toString()] = flag;
        }

        if (info[mo.gameUserInfo.uid] != undefined){
            info[mo.gameUserInfo.uid] = 1;
        }

        mo.eventHelper.dispatch_1("UserOnLineChange", info);
    };

    return that;
};